#pragma once

#include <QtWidgets/QMainWindow>

#include "ui_YoloV5_Window.h"
#include <QtWidgets>
#include <QSlider>
#include <QString>
#include "ImgProc.h"

class YoloV5_Window : public QMainWindow
{
    Q_OBJECT

public:
    YoloV5_Window(QWidget *parent = Q_NULLPTR);

private:
    Ui::YoloV5_WindowClass ui;

private:
    QPushButton* btnOK;
    QPushButton* btnSelectFile;
    
    QComboBox* operationBox;
    QString selectImgName;
    QLabel* labelDisplay;
    QLabel* labelDisplay1;
    QLabel* imgOpStyle;
    QLabel* imgSelectLabel;
    QLabel* constrastLabel;
    QLabel* brightnessLabel;
    QSlider* contrastSlider;
    QSlider* brightnessSlider;
    
private:
    ImgProc imgProc;
    Mat img, changImg;

private:
    void operate_yolov5();
    void operateContrast();
    void operateBrightness();
    void operateGamma();
    void operateHoughLine();

private slots:
    void clickOK();
    void clickSelectFile();

};
